package com.example.demo.mapper;

import com.example.demo.entity.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface StudentMapper {
    //添加数据
    public int addStudent(Student stu);
    //单个删除
    public int deleteStudent(String s);
    //批量删除
    public int deleteBatchStudent(List<Student> list);
    //修改数据
    public int updateStudent(Student stu);
    //全部查询
    public List<Student> findStudent();
    //部分查询
    public List<Student> findStudentByCondition(Student stu);
}
